import {requestInstance} from "../Request";

// 获取权限列表
export function permissons(params) {

  return requestInstance.getRequest({
    url:'/permissons',
    params:params
  });
}


export function roles(params) {

  return requestInstance.getRequest({
    url:'/roles',
    params
  })
}

export function rolePermissions(params) {

  return requestInstance.getRequest({
    url:'/rolePermissions',
    params
  })
}

export function deleteRolePermission(data) {

  return requestInstance.postRequest({
    url:'/deleteRolePermission',
    data
  })
}

export function updateRolePermissions(data) {

  return requestInstance.postRequest({
    url:'/updateRolePermissions',
    data
  })
}

export function addRolePermission(data) {

  return requestInstance.postRequest({
    url:'/addRolePermission',
    data
  })
}
